package com.matt.domain.care;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.util.Date;


/**
 * 药品交接记录
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@MappedSuperclass
public class HLCareBaseRecord extends Domain {

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'", nullable = false)
    private String createdBy;

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人园区id'", nullable = false)
    private String areaId;

    @Column(columnDefinition = "varchar(32)  COMMENT '宝宝id'",nullable = false)
    private String childId;

    @Column(columnDefinition = "varchar(32)  COMMENT '宝宝姓名'", nullable = false)
    private String childName;

    @Column(columnDefinition = "datetime default NOW() COMMENT '时间发生时间'")
    private Date eventTime;

}
